/* example.i */
%module example
%{
/* Put header files here or function declarations like below */
#include "example.h"
%}
%include "cpointer.i"

%pointer_class(unsigned char, puchar);
%pointer_class(int, pint);
%include "carrays.i"
%array_class(unsigned char, uchar_array);
%array_class(int, int_array);

%pointer_cast(unsigned char *, int *, puchar_to_pint);
%pointer_cast(int *, unsigned char *, pint_to_puchar);
%pointer_cast(unsigned char *, void const *, puchar_to_pvoid_const);

%include "cdata.i"
%include "example.h" 
 
